import coding
import test_free_coding

alphabet = ['a','b']
#gram = coding.DistGrammar(1,2,2)
words = ['ab','ba']
gram = coding.DistGrammar(1, words = words)
for word in gram.numwords:
    print "".join([alphabet[w] for w in word])

print
test_free_coding.runtest(1,alphabet,1, gram = gram, e = 0.01, d = 10000)
